<?php
$s['AddHead'] = '<link href="'.base_url().'css/mem/regisform_v.css" rel="stylesheet" type="text/css" />';
$s['AddTitle']= "Change Password";
$this->load->view('mem/u_header',$s);
$this->load->view('mem/u_panel_v');

if(isset($completed)){
	echo "<div>".$completed."</div>";	
}

?>

<div id="stylized" class="myform">
    <form id="form" name="form" method="post" action="<?=base_url()?>mem/user/changepass" <? echo $cf['p_avatar']== TRUE ? 'enctype="multipart/form-data"' : ''?> >
        <h1>Change password</h1>
		<?php echo validation_errors('<div class="error-msg">', '</div>'); ?>
		<label>
            รหัสผ่านเดิม<span class="mark">*</span><span class="small">รหัสผ่าน</span>
        </label>
        <span class="takeinput"><input type="password" name="oldpassword" id="oldpassword" /></span>
		<label>
            รหัสผ่านใหม่<span class="mark">*</span><span class="small">รหัสผ่าน</span>
        </label>
        <span class="takeinput"><input type="password" name="password" id="password" /></span>
		<label>
           ยืนยัน รหัสผ่าน<span class="mark">*</span><span class="small">กรอกให้ตรงกับรหัสผ่านใหม่</span>
        </label>
        <span class="takeinput"><input type="password" name="confirmpassword" id="confirmpassword" /></span>
		
	<label>ตรวจสอบก่อนกดส่งข้อมูล<span class="small"> </span></label>
		<span class="takeinput"><? echo form_submit('mysubmit', 'ส่งข้อมูล');?></span>
    </form>
</div>
<?php
$this->load->view('mem/u_footer');
?>